package com.baorant.auth_server.service;

import com.baorant.auth_server.dao.SpringcloudUserMapper;
import com.baorant.auth_server.entity.SpringcloudUser;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.security.core.userdetails.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    static org.slf4j.Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Autowired
    private SpringcloudUserMapper springcloudUserMapper;

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public SpringcloudUser getUser(String username) {
        return springcloudUserMapper.findByUsername(username);
    }

}
